<ui:composition template="/WEB-INF/templates/template-principal.xhtml" xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets">

	<ui:define name="conteudo">
		<h:form prependId="false">
			<h:panelGrid columns="3">
				<h:outputLabel value="Nome:" for="campo-nome" />
				<h:inputText value="#{departamentoBean.departamento.nome}" required="true" id="campo-nome">
					<f:validateLength minimum="3" maximum="30" />
				</h:inputText>
				<h:message for="campo-nome" style="color:red" />

				<h:inputHidden />
				<h:commandButton value="Enviar" action="#{departamentoBean.adicionaOuAltera()}" styleClass="botao" />
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
